﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_BaoGia : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvNhaCungCap")]
        private ADVObjects _AdvNhaCungCap;
        [AccessedThroughProperty("AdvNhanVien")]
        private ADVObjects _AdvNhanVien;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("C1DockingTabPage3")]
        private C1DockingTabPage _C1DockingTabPage3;
        [AccessedThroughProperty("CboLienHe")]
        private ComboBox _CboLienHe;
        [AccessedThroughProperty("CboLoaiGia")]
        private ComboBox _CboLoaiGia;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CboTinhTrang")]
        private ComboBox _CboTinhTrang;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdAddRow")]
        private Button _CmdAddRow;
        [AccessedThroughProperty("CmdChapThuan")]
        private ToolStripMenuItem _CmdChapThuan;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdDelRow")]
        private Button _CmdDelRow;
        [AccessedThroughProperty("CmdDieuKhoanMacDinh")]
        private ToolStripButton _CmdDieuKhoanMacDinh;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdInTiengAnh")]
        private ToolStripMenuItem _CmdInTiengAnh;
        [AccessedThroughProperty("CmdInTiengViet")]
        private ToolStripMenuItem _CmdInTiengViet;
        [AccessedThroughProperty("CmdKhongChapThuan")]
        private ToolStripMenuItem _CmdKhongChapThuan;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripSplitButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("CmdXacNhan")]
        private ToolStripDropDownButton _CmdXacNhan;
        [AccessedThroughProperty("ImageList1")]
        private ImageList _ImageList1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label12")]
        private Label _Label12;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label15")]
        private Label _Label15;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label17")]
        private Label _Label17;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label20")]
        private Label _Label20;
        [AccessedThroughProperty("Label21")]
        private Label _Label21;
        [AccessedThroughProperty("Label22")]
        private Label _Label22;
        [AccessedThroughProperty("Label23")]
        private Label _Label23;
        [AccessedThroughProperty("Label24")]
        private Label _Label24;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label57")]
        private Label _Label57;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("mnInTiengAnh")]
        private ToolStripMenuItem _mnInTiengAnh;
        [AccessedThroughProperty("mnInTiengAnhKhongTotal")]
        private ToolStripMenuItem _mnInTiengAnhKhongTotal;
        [AccessedThroughProperty("mnInTiengViet")]
        private ToolStripMenuItem _mnInTiengViet;
        [AccessedThroughProperty("mnInTiengVietKhongToal")]
        private ToolStripMenuItem _mnInTiengVietKhongToal;
        [AccessedThroughProperty("Panel4")]
        private Panel _Panel4;
        [AccessedThroughProperty("Panel5")]
        private Panel _Panel5;
        [AccessedThroughProperty("TabControl1")]
        private C1DockingTab _TabControl1;
        [AccessedThroughProperty("TabDetails")]
        private C1DockingTab _TabDetails;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("ToolStripSeparator4")]
        private ToolStripSeparator _ToolStripSeparator4;
        [AccessedThroughProperty("ToolStripSplitButton1")]
        private ToolStripButton _ToolStripSplitButton1;
        [AccessedThroughProperty("TxtChucVu")]
        private TextBox _TxtChucVu;
        [AccessedThroughProperty("TxtDiaChiGiaoHang")]
        private TextBox _TxtDiaChiGiaoHang;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtDienThoai")]
        private TextBox _TxtDienThoai;
        [AccessedThroughProperty("TxtDienThoaiNhanVien")]
        private TextBox _TxtDienThoaiNhanVien;
        [AccessedThroughProperty("TxtEmail")]
        private TextBox _TxtEmail;
        [AccessedThroughProperty("TxtEmailNhanVien")]
        private TextBox _TxtEmailNhanVien;
        [AccessedThroughProperty("TxtFax")]
        private TextBox _TxtFax;
        [AccessedThroughProperty("TxtFaxNhanVien")]
        private TextBox _TxtFaxNhanVien;
        [AccessedThroughProperty("TxtHanGiaoHang")]
        private DateTimePicker _TxtHanGiaoHang;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private DateTimePicker _TxtNgayChungTu;
        [AccessedThroughProperty("txtRe")]
        private TextBox _txtRe;
        [AccessedThroughProperty("TxtRefNo")]
        private TextBox _TxtRefNo;
        [AccessedThroughProperty("TxtSoChungTu")]
        private TextBox _TxtSoChungTu;
        [AccessedThroughProperty("TxtSoLuong")]
        private C1NumericEdit _TxtSoLuong;
        [AccessedThroughProperty("TxtSoTienNT")]
        private C1NumericEdit _TxtSoTienNT;
        [AccessedThroughProperty("TxtTienThueNT")]
        private C1NumericEdit _TxtTienThueNT;
        [AccessedThroughProperty("TxtTongCongNT")]
        private C1NumericEdit _TxtTongCongNT;
        [AccessedThroughProperty("TxtTyGia")]
        private C1NumericEdit _TxtTyGia;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        [AccessedThroughProperty("VSListDieuKhoan")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSListDieuKhoan;
        private DataView cFrmData;
        private string cFrmFormat;
        public string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnabledControl;
        private string mLoaiChungTu;
        private ClsBaoGia objBG;
        private ClsBaoGiaChiTiet objBGCT;
        private clsDonDatHang objDH;
        private clsDonDatHangChiTiet objDHCT;
        private clsChiTietDieuKhoanChungTu objDKCT;
        private clsDMLoaiTien objLT;
        private clsSoChungTu objSoCT;

        public Frm_BaoGia()
        {
            base.KeyDown += new KeyEventHandler(this.Frm_BaoGia_KeyDown);
            base.Load += new EventHandler(this.Frm_BaoGia_Load);
            base.HelpRequested += new HelpEventHandler(this.Me_HelpRequested);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.mLoaiChungTu = "BGKH";
            this.objSoCT = new clsSoChungTu();
            this.cFrmKhoa = "";
            this.cFrmKhoaOld = "";
            this.cFrmTask = "";
            this.objDH = new clsDonDatHang();
            this.objDHCT = new clsDonDatHangChiTiet();
            this.objBG = new ClsBaoGia();
            this.objBGCT = new ClsBaoGiaChiTiet();
            this.objDKCT = new clsChiTietDieuKhoanChungTu();
            this.objLT = new clsDMLoaiTien();
            this.InitializeComponent();
        }

        private void AdvNhaCungCap_ValueChanged(object sender, EventArgs e)
        {
            if (this.AdvNhaCungCap.Value.Trim() == "")
            {
                this.CboLienHe.Text = "";
                this.CboLienHe.SelectedValue = "";
                this.CboLienHe.DataSource = null;
            }
            else
            {
                clsDMDoiTuong tuong = new clsDMDoiTuong();
                tuong.Load(this.AdvNhaCungCap.Value);
                this.CboLienHe.DataSource = tuong.GetContactor(tuong.Khoa);
                this.CboLienHe.ValueMember = "Khoa";
                this.CboLienHe.DisplayMember = "Ten";
                if (this.CboLienHe.Items.Count >= 1)
                {
                    this.CboLienHe.SelectedIndex = 0;
                }
                if (tuong.KhoaLoaiGia.Trim() != "")
                {
                    this.CboLoaiGia.SelectedValue = tuong.KhoaLoaiGia;
                }
                else
                {
                    this.CboLoaiGia.SelectedValue = modGeneral.H_GIACHUAN;
                }
                this.TxtDienThoai.Text = tuong.DienThoai;
                this.TxtFax.Text = tuong.Fax;
                this.TxtEmail.Text = tuong.Email;
            }
        }

        private void AdvNhanVien_ValueChanged(object sender, EventArgs e)
        {
            clsDMDoiTuong tuong = new clsDMDoiTuong();
            if (this.AdvNhanVien.Value.Trim() == "")
            {
                this.TxtChucVu.Text = "";
                this.TxtDienThoaiNhanVien.Text = "";
                this.TxtFaxNhanVien.Text = "";
                this.TxtEmailNhanVien.Text = "";
            }
            else
            {
                tuong.Load(this.AdvNhanVien.Value);
                this.TxtChucVu.Text = tuong.GhiChu;
                if (tuong.DienThoai.Trim() != "")
                {
                    this.TxtDienThoaiNhanVien.Text = tuong.DienThoai;
                }
                else
                {
                    this.TxtDienThoaiNhanVien.Text = modGeneral.H_TELEPHONE;
                }
                if (tuong.Fax.Trim() != "")
                {
                    this.TxtFaxNhanVien.Text = tuong.Fax;
                }
                else
                {
                    this.TxtFaxNhanVien.Text = modGeneral.H_FAX;
                }
                this.TxtEmailNhanVien.Text = tuong.Email;
            }
        }

        private void CboLoaiTien_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                this.TxtTyGia.Value = 0;
            }
            else
            {
                string strCode = this.CboLoaiTien.SelectedValue.ToString();
                this.objLT.LoadByCode(strCode);
                this.TxtTyGia.Value = this.objLT.TyGia;
                if (this.objLT.SoLe > 0)
                {
                    this.cFrmFormat = modGeneral.H_FORMATNUMBER + "." + LVYModule.sRight("0000000000", this.objLT.SoLe);
                }
                this.FormatNumber();
                if (this.objLT.TienViet == 1)
                {
                    this.TxtTyGia.Enabled = false;
                }
                else
                {
                    this.TxtTyGia.Enabled = true;
                }
            }
        }

        public bool CheckIvalid()
        {
            if (LVYModule.ReturnIfNull(this.TxtSoChungTu.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập số chứng từ!", ""));
                this.TxtSoChungTu.Focus();
                return false;
            }
            if (this.objBG.IsDuplicateVoucherNo(this.TxtSoChungTu.Text, this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Số chứng từ n\x00e0y đ\x00e3 tồn tại, bạn h\x00e3y nhập số chứng từ kh\x00e1c!", ""));
                this.TxtSoChungTu.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.AdvNhaCungCap.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập kh\x00e1ch h\x00e0ng mua h\x00e0ng!", ""));
                this.AdvNhaCungCap.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải chọn loại tiền!", ""));
                this.CboLoaiTien.Focus();
                return false;
            }
            if (Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTyGia.Value), 0, modGeneral.TypeOfValue.Nothing)) == 0.0)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập tỷ gi\x00e1 nguy\x00ean tệ!", ""));
                this.TxtTyGia.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.EmptyData();
            this.objSoCT.Load(this.mLoaiChungTu);
            this.TxtSoChungTu.Text = this.objSoCT.CreateVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6), 1);
            this.cFrmKhoa = modGeneral.CreatKey("BH_BaoGia", 15, "");
            this.CboLoaiTien.SelectedValue = modGeneral.H_CURRENCY;
            this.FillDieuKhoanTemplate();
            this.cFrmTask = "I";
            this.TxtDienGiai.Text = "Cảm ơn qu\x00fd C\x00f4ng ty đ\x00e3 quan t\x00e2m đến c\x00e1c sản phẩm của c\x00f4ng ty ch\x00fang t\x00f4i, xin h\x00e2n hạnh giới thiệu đến qu\x00fd kh\x00e1ch h\x00e0ng bảng ch\x00e0o gi\x00e1 m\x00e1y vi t\x00ednh với gi\x00e1 ưu đ\x00e3i như sau:";
            this.EnabledControl = true;
        }

        private void CmdAddRow_Click(object sender, EventArgs e)
        {
            if (this.AdvNhaCungCap.Value.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập nh\x00e0 cung cấp!", ""));
                this.AdvNhaCungCap.Focus();
            }
            else if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboLoaiTien.SelectedValue), "", modGeneral.TypeOfValue.String).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập loại tiền!", ""));
                this.AdvNhaCungCap.Focus();
            }
            else if (this.TabDetails.SelectedIndex == 0)
            {
                if ((this.VSlist.Rows.Count <= 1) || (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[this.VSlist.Rows.Count - 1, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != ""))
                {
                    this.VSlist.AddItem("");
                    this.VSlist.Select(this.VSlist.Rows.Count - 1, 4);
                    this.VSlist.Focus();
                    RowColEventArgs args = new RowColEventArgs(this.VSlist.Rows.Count - 1, 4);
                    this.VSlist_CellButtonClick(this, args);
                }
            }
            else
            {
                this.VSListDieuKhoan.AddItem("");
                this.VSListDieuKhoan.Select(this.VSListDieuKhoan.Rows.Count - 1, 2);
                this.VSListDieuKhoan.Focus();
            }
        }

        private void CmdChapThuan_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.objBG.ConfirmStatus(this.cFrmKhoa, 1);
            }
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (((LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "") && LVYModule.ConfirmDelete("")) && this.objBG.DelData(this.cFrmKhoa))
            {
                this.EmptyData();
                this.EnabledControl = false;
            }
        }

        private void CmdDelRow_Click(object sender, EventArgs e)
        {
            if ((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0))
            {
                this.VSlist.RemoveItem(this.VSlist.Row);
            }
        }

        private void CmdDieuKhoanMacDinh_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_DieuKhoanBaoGia.strLoaiChungTu = "BG";
            MyProject.Forms.Frm_DieuKhoanBaoGia.ShowDialog();
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            if (((this.VSlist.Rows.Count != 1) && (this.VSlist.Row > 0)) && (this.cFrmKhoa.Trim() != ""))
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
                this.EnabledControl = true;
                this.cFrmTask = "U";
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdFind_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_BaoGiaList.Show();
            MyProject.Forms.Frm_BaoGiaList.BringToFront();
        }

        private void CmdHelp_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp("BAOGIA.htm");
        }

        private void CmdKhongChapThuan_Click(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() != "")
            {
                this.objBG.ConfirmStatus(this.cFrmKhoa, 2);
            }
        }

        private void CmdPrint_ButtonClick(object sender, EventArgs e)
        {
            ReportModule.PrintBaoGia(this.cFrmKhoa, "VIET", 0);
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                if (!this.SaveDetailsTemp())
                {
                    this.objBG.ClearTemp(this.cFrmKhoa);
                }
                else if (!this.SaveDieuKhoan())
                {
                    this.objBG.ClearTemp(this.cFrmKhoa);
                }
                else if (Conversions.ToBoolean(Microsoft.VisualBasic.CompilerServices.Operators.NotObject(this.UpdateData())))
                {
                    this.objBG.ClearTemp(this.cFrmKhoa);
                }
                else
                {
                    this.EnabledControl = false;
                    this.cFrmTask = "";
                }
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoaOld != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
                this.ShowData(this.cFrmKhoa);
            }
            else
            {
                this.EmptyData();
            }
            if (this.cFrmTask == "I")
            {
                this.objSoCT.UndoVoucher(LVYModule.sLeft(LVYModule.Date2Char(this.TxtNgayChungTu.Text), 6));
            }
            this.cFrmTask = "";
            this.EnabledControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void EmptyData()
        {
            this.objBG.SetBlank();
            this.TxtSoChungTu.Text = "";
            this.TxtNgayChungTu.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.AdvNhaCungCap.Value = "";
            this.CboLienHe.SelectedValue = "";
            this.CboLoaiGia.SelectedValue = "";
            this.TxtDienGiai.Text = "";
            this.TxtDiaChiGiaoHang.Text = "";
            this.TxtDienThoai.Text = "";
            this.TxtEmail.Text = "";
            this.TxtFax.Text = "";
            this.CboLoaiTien.SelectedValue = "";
            this.AdvNhanVien.Value = "";
            this.VSlist.Select(0, 0);
            this.VSlist.Rows.Count = 1;
            this.VSListDieuKhoan.Select(0, 0);
            this.VSListDieuKhoan.Rows.Count = 1;
            this.TxtSoChungTu.Focus();
        }

        public void FillDieuKhoanTemplate()
        {
            DataTable dieuKhoanTemplate = this.objBG.GetDieuKhoanTemplate("BG");
            this.VSListDieuKhoan.Select(0, 0);
            this.VSListDieuKhoan.Rows.Count = 1;
            int num2 = dieuKhoanTemplate.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                this.VSListDieuKhoan.AddItem("");
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["KhoaDieuKhoan"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["DieuKhoan"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["NoiDungViet"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(dieuKhoanTemplate.Rows[i]["NoiDungAnh"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 5] = dieuKhoanTemplate.Rows[i]["HienThi"].ToString().Trim();
            }
        }

        public void FormatNumber()
        {
            LVYModule.advFormatNumber(this.TxtTyGia, this.cFrmFormat);
            this.VSlist.Cols[15].DataType = System.Type.GetType("System.Decimal");
            this.VSlist.Cols[0x10].DataType = System.Type.GetType("System.Decimal");
            this.VSlist.Cols[0x12].DataType = System.Type.GetType("System.Decimal");
            this.VSlist.Cols[15].Format = this.cFrmFormat;
            this.VSlist.Cols[0x10].Format = this.cFrmFormat;
            this.VSlist.Cols[0x12].Format = this.cFrmFormat;
        }

        private void Frm_BaoGia_KeyDown(object sender, KeyEventArgs e)
        {
            Keys keyCode = e.KeyCode;
            if (keyCode != Keys.ControlKey)
            {
                if (keyCode == Keys.Escape)
                {
                    if (this.CmdExit.Enabled)
                    {
                        this.CmdExit_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F2)
                {
                    if (this.CmdEdit.Enabled)
                    {
                        this.CmdEdit_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F3)
                {
                    this.CmdFind_Click(RuntimeHelpers.GetObjectValue(sender), e);
                }
                else if (keyCode == Keys.F5)
                {
                    this.TabDetails.SelectedIndex = 0;
                }
                else if (keyCode == Keys.F6)
                {
                    this.TabDetails.SelectedIndex = 1;
                }
                else if (keyCode == Keys.F8)
                {
                    if (this.CmdAdd.Enabled)
                    {
                        this.CmdAdd_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F9)
                {
                    if (this.CmdDel.Enabled)
                    {
                        this.CmdDel_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if (keyCode == Keys.F10)
                {
                    if (this.CmdSave.Enabled)
                    {
                        this.CmdSave_Click(RuntimeHelpers.GetObjectValue(sender), e);
                    }
                }
                else if ((keyCode == Keys.F11) && this.CmdUnsave.Enabled)
                {
                    this.CmdUnsave_Click(RuntimeHelpers.GetObjectValue(sender), e);
                }
            }
        }

        private void Frm_BaoGia_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.EmptyData();
                this.EnabledControl = false;
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
                BuildComboModule.BuildCombo(this.CboLoaiGia, modGeneral.ListDanhMuc.LoaiGiaBan, false, "", "");
                BuildComboModule.BuildCombo(this.CboLienHe, modGeneral.ListDanhMuc.LoaiKhachHang, false, "", "");
                this.CboTinhTrang.Items.Clear();
                this.CboTinhTrang.Items.Add(modGeneral.Tranlated("Mở", ""));
                this.CboTinhTrang.Items.Add(modGeneral.Tranlated("Duyệt", ""));
                this.CboTinhTrang.Items.Add(modGeneral.Tranlated("Hủy", ""));
                this.CboTinhTrang.SelectedIndex = 0;
                this.cFrmFormat = modGeneral.H_FORMATNUMBER;
                this.InitDataMap();
                if (LVYModule.ReturnIfNull(this.cFrmKhoa, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.EmptyData();
                }
                else
                {
                    this.SetLanguage();
                    this.ShowData(this.cFrmKhoa);
                }
                this.VSlist.Cols[14].Editor = this.TxtSoLuong;
                this.Cursor = Cursors.Default;
            }
        }

        public void GetDieuKhoan(object pKhoa)
        {
            DataTable dieuKhoan = this.objBG.GetDieuKhoan(Conversions.ToString(pKhoa));
            this.VSListDieuKhoan.Select(0, 0);
            this.VSListDieuKhoan.Rows.Count = 1;
            int num2 = dieuKhoan.Rows.Count - 1;
            for (int i = 0; i <= num2; i++)
            {
                this.VSListDieuKhoan.AddItem("");
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(dieuKhoan.Rows[i]["Khoa"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(dieuKhoan.Rows[i]["KhoaDieuKhoan"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(dieuKhoan.Rows[i]["DieuKhoan"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(dieuKhoan.Rows[i]["NoiDungViet"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(dieuKhoan.Rows[i]["NoiDungAnh"]);
                this.VSListDieuKhoan[this.VSListDieuKhoan.Rows.Count - 1, 5] = dieuKhoan.Rows[i]["HienThi"].ToString().Trim();
            }
        }

        [DllImport("hhctrl.ocx")]
        private static extern bool HtmlHelp(IntPtr handle, string file, int command, int data);
        public void InitDataMap()
        {
            Hashtable hashtable = new Hashtable();
            hashtable.Add("0", "In thường");
            hashtable.Add("1", "In đậm");
            this.VSListDieuKhoan.Cols[5].DataMap = hashtable;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_BaoGia));
            this.TxtTienThueNT = new C1NumericEdit();
            this.Label15 = new Label();
            this.TxtTongCongNT = new C1NumericEdit();
            this.Label14 = new Label();
            this.Label9 = new Label();
            this.CboLoaiTien = new ComboBox();
            this.Label11 = new Label();
            this.Label13 = new Label();
            this.TxtNgayChungTu = new DateTimePicker();
            this.Label1 = new Label();
            this.Label16 = new Label();
            this.TxtDienGiai = new TextBox();
            this.TxtSoTienNT = new C1NumericEdit();
            this.TxtSoChungTu = new TextBox();
            this.Panel4 = new Panel();
            this.TxtSoLuong = new C1NumericEdit();
            this.txtRe = new TextBox();
            this.Label23 = new Label();
            this.CboTinhTrang = new ComboBox();
            this.Label19 = new Label();
            this.CmdDelRow = new Button();
            this.CmdAddRow = new Button();
            this.Panel5 = new Panel();
            this.Label5 = new Label();
            this.TxtRefNo = new TextBox();
            this.Label24 = new Label();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.VSListDieuKhoan = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.ImageList1 = new ImageList(this.components);
            this.TxtChucVu = new TextBox();
            this.Label22 = new Label();
            this.TxtEmailNhanVien = new TextBox();
            this.Label12 = new Label();
            this.TxtFaxNhanVien = new TextBox();
            this.Label20 = new Label();
            this.TxtDienThoaiNhanVien = new TextBox();
            this.Label21 = new Label();
            this.TxtEmail = new TextBox();
            this.Label18 = new Label();
            this.TxtFax = new TextBox();
            this.Label8 = new Label();
            this.TxtDienThoai = new TextBox();
            this.Label4 = new Label();
            this.CboLoaiGia = new ComboBox();
            this.Label3 = new Label();
            this.Label17 = new Label();
            this.CboLienHe = new ComboBox();
            this.Label7 = new Label();
            this.TxtHanGiaoHang = new DateTimePicker();
            this.Label2 = new Label();
            this.ToolStrip1 = new ToolStrip();
            this.CmdAdd = new ToolStripButton();
            this.CmdEdit = new ToolStripButton();
            this.ToolStripSeparator2 = new ToolStripSeparator();
            this.CmdSave = new ToolStripButton();
            this.CmdUnsave = new ToolStripButton();
            this.ToolStripSeparator1 = new ToolStripSeparator();
            this.CmdFind = new ToolStripButton();
            this.ToolStripSplitButton1 = new ToolStripButton();
            this.CmdPrint = new ToolStripSplitButton();
            this.mnInTiengViet = new ToolStripMenuItem();
            this.mnInTiengVietKhongToal = new ToolStripMenuItem();
            this.mnInTiengAnh = new ToolStripMenuItem();
            this.mnInTiengAnhKhongTotal = new ToolStripMenuItem();
            this.ToolStripButton1 = new ToolStripSeparator();
            this.CmdDel = new ToolStripButton();
            this.ToolStripSeparator3 = new ToolStripSeparator();
            this.CmdExit = new ToolStripButton();
            this.CmdHelp = new ToolStripButton();
            this.CmdDieuKhoanMacDinh = new ToolStripButton();
            this.ToolStripSeparator4 = new ToolStripSeparator();
            this.CmdXacNhan = new ToolStripDropDownButton();
            this.CmdChapThuan = new ToolStripMenuItem();
            this.CmdKhongChapThuan = new ToolStripMenuItem();
            this.TabControl1 = new C1DockingTab();
            this.C1DockingTabPage1 = new C1DockingTabPage();
            this.TxtTyGia = new C1NumericEdit();
            this.Label57 = new Label();
            this.AdvNhaCungCap = new ADVObjects();
            this.AdvNhanVien = new ADVObjects();
            this.TabDetails = new C1DockingTab();
            this.C1DockingTabPage2 = new C1DockingTabPage();
            this.TxtDiaChiGiaoHang = new TextBox();
            this.C1DockingTabPage3 = new C1DockingTabPage();
            ((ISupportInitialize) this.TxtTienThueNT).BeginInit();
            ((ISupportInitialize) this.TxtTongCongNT).BeginInit();
            ((ISupportInitialize) this.TxtSoTienNT).BeginInit();
            this.Panel4.SuspendLayout();
            ((ISupportInitialize) this.TxtSoLuong).BeginInit();
            this.Panel5.SuspendLayout();
            this.VSlist.BeginInit();
            this.VSListDieuKhoan.BeginInit();
            this.ToolStrip1.SuspendLayout();
            ((ISupportInitialize) this.TabControl1).BeginInit();
            this.TabControl1.SuspendLayout();
            this.C1DockingTabPage1.SuspendLayout();
            ((ISupportInitialize) this.TxtTyGia).BeginInit();
            ((ISupportInitialize) this.TabDetails).BeginInit();
            this.TabDetails.SuspendLayout();
            this.C1DockingTabPage2.SuspendLayout();
            this.C1DockingTabPage3.SuspendLayout();
            this.SuspendLayout();
            this.TxtTienThueNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTienThueNT.FormatType = FormatTypeEnum.StandardNumber;
            Point point = new Point(0x57, 0x19);
            this.TxtTienThueNT.Location = point;
            this.TxtTienThueNT.Name = "TxtTienThueNT";
            Padding padding = new Padding(1);
            this.TxtTienThueNT.Padding = padding;
            this.TxtTienThueNT.ReadOnly = true;
            Size size = new Size(0x6d, 20);
            this.TxtTienThueNT.Size = size;
            this.TxtTienThueNT.TabIndex = 0x23;
            this.TxtTienThueNT.Tag = null;
            this.TxtTienThueNT.TextAlign = HorizontalAlignment.Right;
            decimal num = new decimal(new int[] { 0, 0, 0, 0 });
            this.TxtTienThueNT.Value = num;
            this.TxtTienThueNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTienThueNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTienThueNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label15.AutoEllipsis = true;
            this.Label15.AutoSize = true;
            this.Label15.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(10, 0x1c);
            this.Label15.Location = point;
            this.Label15.Name = "Label15";
            this.Label15.RightToLeft = RightToLeft.No;
            size = new Size(0x3b, 14);
            this.Label15.Size = size;
            this.Label15.TabIndex = 0x22;
            this.Label15.Text = "Tiền thuế";
            this.Label15.TextAlign = ContentAlignment.TopRight;
            this.TxtTongCongNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongCongNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x57, 0x2f);
            this.TxtTongCongNT.Location = point;
            this.TxtTongCongNT.Name = "TxtTongCongNT";
            padding = new Padding(1);
            this.TxtTongCongNT.Padding = padding;
            this.TxtTongCongNT.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtTongCongNT.Size = size;
            this.TxtTongCongNT.TabIndex = 0x29;
            this.TxtTongCongNT.Tag = null;
            this.TxtTongCongNT.TextAlign = HorizontalAlignment.Right;
            num = new decimal(new int[] { 0, 0, 0, 0 });
            this.TxtTongCongNT.Value = num;
            this.TxtTongCongNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongCongNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTongCongNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label14.AutoEllipsis = true;
            this.Label14.AutoSize = true;
            this.Label14.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(10, 50);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            this.Label14.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 14);
            this.Label14.Size = size;
            this.Label14.TabIndex = 40;
            this.Label14.Text = "Tổng cộng";
            this.Label14.TextAlign = ContentAlignment.TopRight;
            this.Label9.AutoEllipsis = true;
            this.Label9.AutoSize = true;
            this.Label9.BackColor = Color.Transparent;
            point = new Point(14, 0x93);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            this.Label9.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x20;
            this.Label9.Text = "Diễn giải";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            this.CboLoaiTien.FormattingEnabled = true;
            point = new Point(0x22f, 12);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x80, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 9;
            this.Label11.AutoSize = true;
            this.Label11.BackColor = Color.Transparent;
            point = new Point(0x1df, 15);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x2f, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 14;
            this.Label11.Text = "Loại tiền";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.Label13.AutoSize = true;
            this.Label13.BackColor = Color.Transparent;
            point = new Point(0xfd, 15);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x20, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 2;
            this.Label13.Text = "Ng\x00e0y";
            this.TxtNgayChungTu.Format = DateTimePickerFormat.Short;
            point = new Point(0x13e, 12);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            size = new Size(0x73, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 1;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(14, 15);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x41, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0;
            this.Label1.Text = "Số chứng từ";
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            this.Label16.BackColor = Color.Transparent;
            point = new Point(14, 0x25);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 4;
            this.Label16.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x63, 0x91);
            this.TxtDienGiai.Location = point;
            this.TxtDienGiai.MaxLength = 250;
            this.TxtDienGiai.Multiline = true;
            this.TxtDienGiai.Name = "TxtDienGiai";
            size = new Size(0x310, 0x1c);
            this.TxtDienGiai.Size = size;
            this.TxtDienGiai.TabIndex = 0x12;
            this.TxtSoTienNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoTienNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x57, 3);
            this.TxtSoTienNT.Location = point;
            this.TxtSoTienNT.Name = "TxtSoTienNT";
            padding = new Padding(1);
            this.TxtSoTienNT.Padding = padding;
            this.TxtSoTienNT.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtSoTienNT.Size = size;
            this.TxtSoTienNT.TabIndex = 0x20;
            this.TxtSoTienNT.Tag = null;
            this.TxtSoTienNT.TextAlign = HorizontalAlignment.Right;
            num = new decimal(new int[] { 0, 0, 0, 0 });
            this.TxtSoTienNT.Value = num;
            this.TxtSoTienNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtSoTienNT.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoTienNT.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            point = new Point(0x63, 12);
            this.TxtSoChungTu.Location = point;
            this.TxtSoChungTu.Name = "TxtSoChungTu";
            size = new Size(0x88, 20);
            this.TxtSoChungTu.Size = size;
            this.TxtSoChungTu.TabIndex = 0;
            this.Panel4.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.Panel4.Controls.Add(this.TxtSoLuong);
            this.Panel4.Controls.Add(this.txtRe);
            this.Panel4.Controls.Add(this.Label23);
            this.Panel4.Controls.Add(this.CboTinhTrang);
            this.Panel4.Controls.Add(this.Label19);
            this.Panel4.Controls.Add(this.CmdDelRow);
            this.Panel4.Controls.Add(this.CmdAddRow);
            this.Panel4.Controls.Add(this.Panel5);
            this.Panel4.Dock = DockStyle.Bottom;
            point = new Point(0, 0x1f1);
            this.Panel4.Location = point;
            this.Panel4.Name = "Panel4";
            size = new Size(0x37e, 0x48);
            this.Panel4.Size = size;
            this.Panel4.TabIndex = 0x2c;
            this.TxtSoLuong.BorderStyle = BorderStyle.FixedSingle;
            this.TxtSoLuong.DataType = typeof(double);
            this.TxtSoLuong.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x195, 0x47);
            this.TxtSoLuong.Location = point;
            this.TxtSoLuong.Name = "TxtSoLuong";
            padding = new Padding(1);
            this.TxtSoLuong.Padding = padding;
            size = new Size(0x55, 20);
            this.TxtSoLuong.Size = size;
            this.TxtSoLuong.TabIndex = 0xa4;
            this.TxtSoLuong.Tag = null;
            this.TxtSoLuong.TextAlign = HorizontalAlignment.Right;
            this.TxtSoLuong.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtSoLuong.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtSoLuong.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            point = new Point(0x90, 0x2f);
            this.txtRe.Location = point;
            this.txtRe.Name = "txtRe";
            size = new Size(0xcf, 20);
            this.txtRe.Size = size;
            this.txtRe.TabIndex = 3;
            this.Label23.AutoEllipsis = true;
            this.Label23.AutoSize = true;
            this.Label23.BackColor = Color.Transparent;
            point = new Point(0x8e, 0x1f);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            this.Label23.RightToLeft = RightToLeft.No;
            size = new Size(0x15, 13);
            this.Label23.Size = size;
            this.Label23.TabIndex = 4;
            this.Label23.Text = "Re";
            this.Label23.TextAlign = ContentAlignment.TopRight;
            this.CboTinhTrang.FormattingEnabled = true;
            point = new Point(7, 0x2f);
            this.CboTinhTrang.Location = point;
            this.CboTinhTrang.Name = "CboTinhTrang";
            size = new Size(0x83, 0x15);
            this.CboTinhTrang.Size = size;
            this.CboTinhTrang.TabIndex = 2;
            this.Label19.AutoSize = true;
            this.Label19.BackColor = Color.Transparent;
            point = new Point(4, 30);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x37, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 2;
            this.Label19.Text = "T\x00ecnh trạng";
            this.CmdDelRow.Image = (Image) manager.GetObject("CmdDelRow.Image");
            this.CmdDelRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(100, 0);
            this.CmdDelRow.Location = point;
            this.CmdDelRow.Name = "CmdDelRow";
            size = new Size(0x59, 0x18);
            this.CmdDelRow.Size = size;
            this.CmdDelRow.TabIndex = 1;
            this.CmdDelRow.Text = "&2.X\x00f3a d\x00f2ng";
            this.CmdDelRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdDelRow.UseVisualStyleBackColor = true;
            this.CmdAddRow.Image = (Image) manager.GetObject("CmdAddRow.Image");
            this.CmdAddRow.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(3, 0);
            this.CmdAddRow.Location = point;
            this.CmdAddRow.Name = "CmdAddRow";
            size = new Size(0x5c, 0x18);
            this.CmdAddRow.Size = size;
            this.CmdAddRow.TabIndex = 0;
            this.CmdAddRow.Text = "&1.Th\x00eam d\x00f2ng";
            this.CmdAddRow.TextImageRelation = TextImageRelation.ImageBeforeText;
            this.CmdAddRow.UseVisualStyleBackColor = true;
            this.Panel5.BackColor = Color.Transparent;
            this.Panel5.Controls.Add(this.TxtTienThueNT);
            this.Panel5.Controls.Add(this.Label15);
            this.Panel5.Controls.Add(this.TxtTongCongNT);
            this.Panel5.Controls.Add(this.Label14);
            this.Panel5.Controls.Add(this.TxtSoTienNT);
            this.Panel5.Controls.Add(this.Label5);
            this.Panel5.Dock = DockStyle.Right;
            point = new Point(0x2b4, 0);
            this.Panel5.Location = point;
            this.Panel5.Name = "Panel5";
            size = new Size(0xca, 0x48);
            this.Panel5.Size = size;
            this.Panel5.TabIndex = 0;
            this.Label5.AutoEllipsis = true;
            this.Label5.AutoSize = true;
            this.Label5.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xa3);
            point = new Point(10, 6);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            this.Label5.RightToLeft = RightToLeft.No;
            size = new Size(0x3d, 14);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x1f;
            this.Label5.Text = "Tiền h\x00e0ng";
            this.Label5.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x63, 0x65);
            this.TxtRefNo.Location = point;
            this.TxtRefNo.Name = "TxtRefNo";
            size = new Size(0x14e, 20);
            this.TxtRefNo.Size = size;
            this.TxtRefNo.TabIndex = 6;
            this.Label24.AutoEllipsis = true;
            this.Label24.AutoSize = true;
            this.Label24.BackColor = Color.Transparent;
            point = new Point(14, 0x68);
            this.Label24.Location = point;
            this.Label24.Name = "Label24";
            this.Label24.RightToLeft = RightToLeft.No;
            size = new Size(0x2f, 13);
            this.Label24.Size = size;
            this.Label24.TabIndex = 6;
            this.Label24.Text = "Bộ phận";
            this.Label24.TextAlign = ContentAlignment.TopRight;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Cursor = Cursors.Default;
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            this.VSlist.KeyActionTab = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.Rows.MaxSize = 20;
            this.VSlist.Rows.MinSize = 20;
            size = new Size(0x37c, 0xee);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0;
            this.VSlist.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.VSListDieuKhoan.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.Light3D;
            this.VSListDieuKhoan.ColumnInfo = manager.GetString("VSListDieuKhoan.ColumnInfo");
            this.VSListDieuKhoan.Cursor = Cursors.Default;
            this.VSListDieuKhoan.Dock = DockStyle.Fill;
            this.VSListDieuKhoan.ExtendLastCol = true;
            this.VSListDieuKhoan.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0);
            this.VSListDieuKhoan.Location = point;
            this.VSListDieuKhoan.Name = "VSListDieuKhoan";
            this.VSListDieuKhoan.Rows.Count = 1;
            this.VSListDieuKhoan.Rows.DefaultSize = 0x11;
            this.VSListDieuKhoan.Rows.MaxSize = 20;
            this.VSListDieuKhoan.Rows.MinSize = 20;
            size = new Size(0x37c, 0xee);
            this.VSListDieuKhoan.Size = size;
            this.VSListDieuKhoan.StyleInfo = manager.GetString("VSListDieuKhoan.StyleInfo");
            this.VSListDieuKhoan.TabIndex = 0x20;
            this.VSListDieuKhoan.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            this.ImageList1.ImageStream = (ImageListStreamer) manager.GetObject("ImageList1.ImageStream");
            this.ImageList1.TransparentColor = Color.Transparent;
            this.ImageList1.Images.SetKeyName(0, "orders_main.png");
            this.ImageList1.Images.SetKeyName(1, "checkingacct.png");
            this.ImageList1.Images.SetKeyName(2, "billing.png");
            point = new Point(0x22f, 0x4f);
            this.TxtChucVu.Location = point;
            this.TxtChucVu.Name = "TxtChucVu";
            size = new Size(0x144, 20);
            this.TxtChucVu.Size = size;
            this.TxtChucVu.TabIndex = 14;
            this.Label22.AutoEllipsis = true;
            this.Label22.AutoSize = true;
            this.Label22.BackColor = Color.Transparent;
            point = new Point(0x1df, 0x52);
            this.Label22.Location = point;
            this.Label22.Name = "Label22";
            this.Label22.RightToLeft = RightToLeft.No;
            size = new Size(0x3b, 13);
            this.Label22.Size = size;
            this.Label22.TabIndex = 0x18;
            this.Label22.Text = "Chức danh";
            this.Label22.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x22f, 0x7b);
            this.TxtEmailNhanVien.Location = point;
            this.TxtEmailNhanVien.Name = "TxtEmailNhanVien";
            size = new Size(0x144, 20);
            this.TxtEmailNhanVien.Size = size;
            this.TxtEmailNhanVien.TabIndex = 0x11;
            this.Label12.AutoEllipsis = true;
            this.Label12.AutoSize = true;
            this.Label12.BackColor = Color.Transparent;
            point = new Point(0x1df, 0x7e);
            this.Label12.Location = point;
            this.Label12.Name = "Label12";
            this.Label12.RightToLeft = RightToLeft.No;
            size = new Size(0x20, 13);
            this.Label12.Size = size;
            this.Label12.TabIndex = 0x1c;
            this.Label12.Text = "Email";
            this.Label12.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x30d, 0x65);
            this.TxtFaxNhanVien.Location = point;
            this.TxtFaxNhanVien.Name = "TxtFaxNhanVien";
            size = new Size(0x66, 20);
            this.TxtFaxNhanVien.Size = size;
            this.TxtFaxNhanVien.TabIndex = 0x10;
            this.Label20.AutoEllipsis = true;
            this.Label20.AutoSize = true;
            this.Label20.BackColor = Color.Transparent;
            point = new Point(0x2c4, 0x69);
            this.Label20.Location = point;
            this.Label20.Name = "Label20";
            this.Label20.RightToLeft = RightToLeft.No;
            size = new Size(0x18, 13);
            this.Label20.Size = size;
            this.Label20.TabIndex = 30;
            this.Label20.Text = "Fax";
            this.Label20.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x22f, 0x65);
            this.TxtDienThoaiNhanVien.Location = point;
            this.TxtDienThoaiNhanVien.Name = "TxtDienThoaiNhanVien";
            size = new Size(0x8b, 20);
            this.TxtDienThoaiNhanVien.Size = size;
            this.TxtDienThoaiNhanVien.TabIndex = 15;
            this.Label21.AutoEllipsis = true;
            this.Label21.AutoSize = true;
            this.Label21.BackColor = Color.Transparent;
            point = new Point(0x1df, 0x68);
            this.Label21.Location = point;
            this.Label21.Name = "Label21";
            this.Label21.RightToLeft = RightToLeft.No;
            size = new Size(0x37, 13);
            this.Label21.Size = size;
            this.Label21.TabIndex = 0x1a;
            this.Label21.Text = "Điện thoại";
            this.Label21.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x63, 0x7b);
            this.TxtEmail.Location = point;
            this.TxtEmail.Name = "TxtEmail";
            size = new Size(0x14e, 20);
            this.TxtEmail.Size = size;
            this.TxtEmail.TabIndex = 7;
            this.Label18.AutoEllipsis = true;
            this.Label18.AutoSize = true;
            this.Label18.BackColor = Color.Transparent;
            point = new Point(14, 0x7d);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            this.Label18.RightToLeft = RightToLeft.No;
            size = new Size(0x20, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 12;
            this.Label18.Text = "Email";
            this.Label18.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x13e, 0x38);
            this.TxtFax.Location = point;
            this.TxtFax.Name = "TxtFax";
            size = new Size(0x73, 20);
            this.TxtFax.Size = size;
            this.TxtFax.TabIndex = 4;
            this.Label8.AutoEllipsis = true;
            this.Label8.AutoSize = true;
            this.Label8.BackColor = Color.Transparent;
            point = new Point(0xfd, 0x3b);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            this.Label8.RightToLeft = RightToLeft.No;
            size = new Size(0x18, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 10;
            this.Label8.Text = "Fax";
            this.Label8.TextAlign = ContentAlignment.TopRight;
            point = new Point(0x63, 0x38);
            this.TxtDienThoai.Location = point;
            this.TxtDienThoai.Name = "TxtDienThoai";
            size = new Size(0x88, 20);
            this.TxtDienThoai.Size = size;
            this.TxtDienThoai.TabIndex = 3;
            this.Label4.AutoEllipsis = true;
            this.Label4.AutoSize = true;
            this.Label4.BackColor = Color.Transparent;
            point = new Point(14, 0x3b);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            this.Label4.RightToLeft = RightToLeft.No;
            size = new Size(0x37, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 8;
            this.Label4.Text = "Điện thoại";
            this.Label4.TextAlign = ContentAlignment.TopRight;
            this.CboLoaiGia.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiGia.FormattingEnabled = true;
            point = new Point(0x22f, 0x22);
            this.CboLoaiGia.Location = point;
            this.CboLoaiGia.Name = "CboLoaiGia";
            size = new Size(0x80, 0x15);
            this.CboLoaiGia.Size = size;
            this.CboLoaiGia.TabIndex = 11;
            this.Label3.AutoSize = true;
            this.Label3.BackColor = Color.Transparent;
            point = new Point(0x1df, 0x25);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            size = new Size(0x2c, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 0x12;
            this.Label3.Text = "Loại gi\x00e1";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            this.Label17.AutoEllipsis = true;
            this.Label17.AutoSize = true;
            this.Label17.BackColor = Color.Transparent;
            point = new Point(0x1df, 0x3d);
            this.Label17.Location = point;
            this.Label17.Name = "Label17";
            this.Label17.RightToLeft = RightToLeft.No;
            size = new Size(0x38, 13);
            this.Label17.Size = size;
            this.Label17.TabIndex = 0x16;
            this.Label17.Text = "Nh\x00e2n vi\x00ean";
            this.Label17.TextAlign = ContentAlignment.TopRight;
            this.CboLienHe.FormattingEnabled = true;
            point = new Point(0x63, 0x4e);
            this.CboLienHe.Location = point;
            this.CboLienHe.Name = "CboLienHe";
            size = new Size(0x14e, 0x15);
            this.CboLienHe.Size = size;
            this.CboLienHe.TabIndex = 5;
            this.Label7.AutoSize = true;
            this.Label7.BackColor = Color.Transparent;
            point = new Point(0x2c4, 0x26);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x44, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 20;
            this.Label7.Text = "Hiệu lực đến";
            this.TxtHanGiaoHang.Format = DateTimePickerFormat.Short;
            point = new Point(0x30d, 0x22);
            this.TxtHanGiaoHang.Location = point;
            this.TxtHanGiaoHang.Name = "TxtHanGiaoHang";
            size = new Size(0x66, 20);
            this.TxtHanGiaoHang.Size = size;
            this.TxtHanGiaoHang.TabIndex = 12;
            this.Label2.AutoEllipsis = true;
            this.Label2.AutoSize = true;
            this.Label2.BackColor = Color.Transparent;
            point = new Point(14, 0x51);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            this.Label2.RightToLeft = RightToLeft.No;
            size = new Size(0x45, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 6;
            this.Label2.Text = "Người li\x00ean hệ";
            this.Label2.TextAlign = ContentAlignment.TopRight;
            this.ToolStrip1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgbluenoborder;
            this.ToolStrip1.Items.AddRange(new ToolStripItem[] { 
                this.CmdAdd, this.CmdEdit, this.ToolStripSeparator2, this.CmdSave, this.CmdUnsave, this.ToolStripSeparator1, this.CmdFind, this.ToolStripSplitButton1, this.CmdPrint, this.ToolStripButton1, this.CmdDel, this.ToolStripSeparator3, this.CmdExit, this.CmdHelp, this.CmdDieuKhoanMacDinh, this.ToolStripSeparator4, 
                this.CmdXacNhan
             });
            point = new Point(0, 0);
            this.ToolStrip1.Location = point;
            this.ToolStrip1.Name = "ToolStrip1";
            size = new Size(0x37e, 0x19);
            this.ToolStrip1.Size = size;
            this.ToolStrip1.TabIndex = 0;
            this.ToolStrip1.Text = "ToolStrip1";
            this.CmdAdd.Image = (Image) manager.GetObject("CmdAdd.Image");
            this.CmdAdd.ImageTransparentColor = Color.White;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x52, 0x16);
            this.CmdAdd.Size = size;
            this.CmdAdd.Text = "&Th\x00eam mới";
            this.CmdAdd.ToolTipText = "F8 Th\x00eam mới bảng b\x00e1o gi\x00e1";
            this.CmdEdit.Image = (Image) manager.GetObject("CmdEdit.Image");
            this.CmdEdit.ImageTransparentColor = Color.White;
            this.CmdEdit.Name = "CmdEdit";
            size = new Size(0x2e, 0x16);
            this.CmdEdit.Size = size;
            this.CmdEdit.Text = "&Sửa";
            this.CmdEdit.ToolTipText = "F2 Chỉnh sửa bảng b\x00e1o gi\x00e1";
            this.ToolStripSeparator2.Name = "ToolStripSeparator2";
            size = new Size(6, 0x19);
            this.ToolStripSeparator2.Size = size;
            this.CmdSave.Image = (Image) manager.GetObject("CmdSave.Image");
            this.CmdSave.ImageTransparentColor = Color.WhiteSmoke;
            this.CmdSave.Name = "CmdSave";
            size = new Size(0x2f, 0x16);
            this.CmdSave.Size = size;
            this.CmdSave.Text = "&Lưu";
            this.CmdSave.ToolTipText = "F10 Lưu th\x00f4ng tin thay đổi";
            this.CmdUnsave.Image = (Image) manager.GetObject("CmdUnsave.Image");
            this.CmdUnsave.ImageTransparentColor = Color.White;
            this.CmdUnsave.Name = "CmdUnsave";
            size = new Size(0x39, 0x16);
            this.CmdUnsave.Size = size;
            this.CmdUnsave.Text = "&K.Lưu";
            this.CmdUnsave.ToolTipText = "F11 Kh\x00f4ng lưu th\x00f4ng tin thay đổi";
            this.ToolStripSeparator1.Name = "ToolStripSeparator1";
            size = new Size(6, 0x19);
            this.ToolStripSeparator1.Size = size;
            this.CmdFind.Image = (Image) manager.GetObject("CmdFind.Image");
            this.CmdFind.ImageTransparentColor = Color.White;
            this.CmdFind.Name = "CmdFind";
            size = new Size(0x4d, 0x16);
            this.CmdFind.Size = size;
            this.CmdFind.Text = "T\x00ecm kiếm";
            this.CmdFind.ToolTipText = "F3 T\x00ecm kiếm bảng b\x00e1o gi\x00e1";
            this.ToolStripSplitButton1.Image = (Image) manager.GetObject("ToolStripSplitButton1.Image");
            this.ToolStripSplitButton1.ImageTransparentColor = Color.White;
            this.ToolStripSplitButton1.Name = "ToolStripSplitButton1";
            size = new Size(0x25, 0x16);
            this.ToolStripSplitButton1.Size = size;
            this.ToolStripSplitButton1.Text = "&In";
            this.ToolStripSplitButton1.ToolTipText = "F12 In bảng b\x00e1o gi\x00e1";
            this.CmdPrint.DropDownItems.AddRange(new ToolStripItem[] { this.mnInTiengViet, this.mnInTiengVietKhongToal, this.mnInTiengAnh, this.mnInTiengAnhKhongTotal });
            this.CmdPrint.Image = (Image) manager.GetObject("CmdPrint.Image");
            this.CmdPrint.ImageTransparentColor = Color.White;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x31, 0x16);
            this.CmdPrint.Size = size;
            this.CmdPrint.Text = "&In";
            this.CmdPrint.ToolTipText = "F12 In bảng b\x00e1o gi\x00e1";
            this.CmdPrint.Visible = false;
            this.mnInTiengViet.Name = "mnInTiengViet";
            size = new Size(0xc1, 0x16);
            this.mnInTiengViet.Size = size;
            this.mnInTiengViet.Text = "Tiếng Việt c\x00f3 total";
            this.mnInTiengVietKhongToal.Name = "mnInTiengVietKhongToal";
            size = new Size(0xc1, 0x16);
            this.mnInTiengVietKhongToal.Size = size;
            this.mnInTiengVietKhongToal.Text = "Tiếng Việt kh\x00f4ng total";
            this.mnInTiengAnh.Name = "mnInTiengAnh";
            size = new Size(0xc1, 0x16);
            this.mnInTiengAnh.Size = size;
            this.mnInTiengAnh.Text = "Tiếng Anh c\x00f3 total";
            this.mnInTiengAnhKhongTotal.Name = "mnInTiengAnhKhongTotal";
            size = new Size(0xc1, 0x16);
            this.mnInTiengAnhKhongTotal.Size = size;
            this.mnInTiengAnhKhongTotal.Text = "Tiếng Anh kh\x00f4ng total";
            this.ToolStripButton1.Name = "ToolStripButton1";
            size = new Size(6, 0x19);
            this.ToolStripButton1.Size = size;
            this.CmdDel.Image = (Image) manager.GetObject("CmdDel.Image");
            this.CmdDel.ImageTransparentColor = Color.White;
            this.CmdDel.Name = "CmdDel";
            size = new Size(0x2f, 0x16);
            this.CmdDel.Size = size;
            this.CmdDel.Text = "&X\x00f3a";
            this.CmdDel.ToolTipText = "F9 X\x00f3a bảng b\x00e1o gi\x00e1";
            this.ToolStripSeparator3.Name = "ToolStripSeparator3";
            size = new Size(6, 0x19);
            this.ToolStripSeparator3.Size = size;
            this.CmdExit.Alignment = ToolStripItemAlignment.Right;
            this.CmdExit.Image = (Image) manager.GetObject("CmdExit.Image");
            this.CmdExit.ImageTransparentColor = Color.White;
            this.CmdExit.Name = "CmdExit";
            size = new Size(0x3a, 0x16);
            this.CmdExit.Size = size;
            this.CmdExit.Text = "Th&o\x00e1t";
            this.CmdHelp.Alignment = ToolStripItemAlignment.Right;
            this.CmdHelp.Image = (Image) manager.GetObject("CmdHelp.Image");
            this.CmdHelp.ImageTransparentColor = Color.Magenta;
            this.CmdHelp.Name = "CmdHelp";
            size = new Size(0x34, 0x16);
            this.CmdHelp.Size = size;
            this.CmdHelp.Text = "&Help";
            this.CmdDieuKhoanMacDinh.Image = (Image) manager.GetObject("CmdDieuKhoanMacDinh.Image");
            this.CmdDieuKhoanMacDinh.ImageTransparentColor = Color.Magenta;
            this.CmdDieuKhoanMacDinh.Name = "CmdDieuKhoanMacDinh";
            size = new Size(0x57, 0x16);
            this.CmdDieuKhoanMacDinh.Size = size;
            this.CmdDieuKhoanMacDinh.Text = "Điều khoản";
            this.ToolStripSeparator4.Name = "ToolStripSeparator4";
            size = new Size(6, 0x19);
            this.ToolStripSeparator4.Size = size;
            this.CmdXacNhan.DropDownItems.AddRange(new ToolStripItem[] { this.CmdChapThuan, this.CmdKhongChapThuan });
            this.CmdXacNhan.Image = ACCOUNTING.My.Resources.Resources.Selected;
            this.CmdXacNhan.ImageTransparentColor = Color.White;
            this.CmdXacNhan.Name = "CmdXacNhan";
            size = new Size(0x55, 0x16);
            this.CmdXacNhan.Size = size;
            this.CmdXacNhan.Text = "X\x00e1c nhận";
            this.CmdChapThuan.Name = "CmdChapThuan";
            size = new Size(0xed, 0x16);
            this.CmdChapThuan.Size = size;
            this.CmdChapThuan.Text = "Kh\x00e1ch h\x00e0ng chấp thuận";
            this.CmdKhongChapThuan.Name = "CmdKhongChapThuan";
            size = new Size(0xed, 0x16);
            this.CmdKhongChapThuan.Size = size;
            this.CmdKhongChapThuan.Text = "Kh\x00e1ch h\x00e0ng kh\x00f4ng chấp thuận";
            this.TabControl1.Controls.Add(this.C1DockingTabPage1);
            this.TabControl1.Dock = DockStyle.Top;
            point = new Point(0, 0x19);
            this.TabControl1.Location = point;
            this.TabControl1.Name = "TabControl1";
            this.TabControl1.SelectedIndex = 1;
            size = new Size(0x37e, 0xd0);
            this.TabControl1.Size = size;
            this.TabControl1.TabIndex = 1;
            this.TabControl1.TabsSpacing = 5;
            this.TabControl1.TabStyle = TabStyleEnum.Office2007;
            this.TabControl1.VisualStyle = C1.Win.C1Command.VisualStyle.Custom;
            this.TabControl1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage1.Controls.Add(this.TxtTyGia);
            this.C1DockingTabPage1.Controls.Add(this.Label57);
            this.C1DockingTabPage1.Controls.Add(this.TxtChucVu);
            this.C1DockingTabPage1.Controls.Add(this.TxtSoChungTu);
            this.C1DockingTabPage1.Controls.Add(this.TxtRefNo);
            this.C1DockingTabPage1.Controls.Add(this.Label1);
            this.C1DockingTabPage1.Controls.Add(this.Label24);
            this.C1DockingTabPage1.Controls.Add(this.TxtNgayChungTu);
            this.C1DockingTabPage1.Controls.Add(this.Label22);
            this.C1DockingTabPage1.Controls.Add(this.Label13);
            this.C1DockingTabPage1.Controls.Add(this.TxtEmailNhanVien);
            this.C1DockingTabPage1.Controls.Add(this.Label11);
            this.C1DockingTabPage1.Controls.Add(this.Label12);
            this.C1DockingTabPage1.Controls.Add(this.CboLoaiTien);
            this.C1DockingTabPage1.Controls.Add(this.TxtFaxNhanVien);
            this.C1DockingTabPage1.Controls.Add(this.Label9);
            this.C1DockingTabPage1.Controls.Add(this.Label20);
            this.C1DockingTabPage1.Controls.Add(this.TxtDienGiai);
            this.C1DockingTabPage1.Controls.Add(this.TxtDienThoaiNhanVien);
            this.C1DockingTabPage1.Controls.Add(this.AdvNhaCungCap);
            this.C1DockingTabPage1.Controls.Add(this.Label21);
            this.C1DockingTabPage1.Controls.Add(this.Label16);
            this.C1DockingTabPage1.Controls.Add(this.TxtEmail);
            this.C1DockingTabPage1.Controls.Add(this.Label2);
            this.C1DockingTabPage1.Controls.Add(this.Label18);
            this.C1DockingTabPage1.Controls.Add(this.TxtHanGiaoHang);
            this.C1DockingTabPage1.Controls.Add(this.TxtFax);
            this.C1DockingTabPage1.Controls.Add(this.Label7);
            this.C1DockingTabPage1.Controls.Add(this.Label8);
            this.C1DockingTabPage1.Controls.Add(this.CboLienHe);
            this.C1DockingTabPage1.Controls.Add(this.TxtDienThoai);
            this.C1DockingTabPage1.Controls.Add(this.AdvNhanVien);
            this.C1DockingTabPage1.Controls.Add(this.Label4);
            this.C1DockingTabPage1.Controls.Add(this.Label17);
            this.C1DockingTabPage1.Controls.Add(this.CboLoaiGia);
            this.C1DockingTabPage1.Controls.Add(this.Label3);
            this.C1DockingTabPage1.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage1.Location = point;
            this.C1DockingTabPage1.Name = "C1DockingTabPage1";
            size = new Size(0x37c, 0xb6);
            this.C1DockingTabPage1.Size = size;
            this.C1DockingTabPage1.TabIndex = 0;
            this.C1DockingTabPage1.Text = "Th\x00f4ng tin b\x00e1o gi\x00e1";
            this.TxtTyGia.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTyGia.DataType = typeof(double);
            this.TxtTyGia.FormatType = FormatTypeEnum.Currency;
            point = new Point(0x30d, 11);
            this.TxtTyGia.Location = point;
            this.TxtTyGia.Name = "TxtTyGia";
            padding = new Padding(1);
            this.TxtTyGia.Padding = padding;
            size = new Size(100, 20);
            this.TxtTyGia.Size = size;
            this.TxtTyGia.TabIndex = 10;
            this.TxtTyGia.Tag = null;
            this.TxtTyGia.VisibleButtons = DropDownControlButtonFlags.DropDown;
            this.TxtTyGia.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.TxtTyGia.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue;
            this.Label57.AutoSize = true;
            this.Label57.BackColor = Color.Transparent;
            point = new Point(0x2c5, 15);
            this.Label57.Location = point;
            this.Label57.Name = "Label57";
            size = new Size(0x24, 13);
            this.Label57.Size = size;
            this.Label57.TabIndex = 0x22;
            this.Label57.Text = "Tỷ gi\x00e1";
            this.Label57.TextAlign = ContentAlignment.TopRight;
            this.AdvNhaCungCap.Conditions = "";
            this.AdvNhaCungCap.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new Point(0x63, 0x22);
            this.AdvNhaCungCap.Location = point;
            this.AdvNhaCungCap.Name = "AdvNhaCungCap";
            this.AdvNhaCungCap.ReadOnly = false;
            size = new Size(0x14e, 20);
            this.AdvNhaCungCap.Size = size;
            this.AdvNhaCungCap.TabIndex = 2;
            this.AdvNhaCungCap.UpperText = true;
            this.AdvNhaCungCap.Value = "";
            this.AdvNhaCungCap.WidthCode = 80;
            this.AdvNhanVien.Conditions = "";
            this.AdvNhanVien.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x22f, 0x39);
            this.AdvNhanVien.Location = point;
            this.AdvNhanVien.Name = "AdvNhanVien";
            this.AdvNhanVien.ReadOnly = false;
            size = new Size(0x144, 20);
            this.AdvNhanVien.Size = size;
            this.AdvNhanVien.TabIndex = 13;
            this.AdvNhanVien.UpperText = true;
            this.AdvNhanVien.Value = "";
            this.AdvNhanVien.WidthCode = 80;
            this.TabDetails.Controls.Add(this.C1DockingTabPage2);
            this.TabDetails.Controls.Add(this.C1DockingTabPage3);
            this.TabDetails.Dock = DockStyle.Fill;
            point = new Point(0, 0xe9);
            this.TabDetails.Location = point;
            this.TabDetails.Name = "TabDetails";
            size = new Size(0x37e, 0x108);
            this.TabDetails.Size = size;
            this.TabDetails.TabIndex = 2;
            this.TabDetails.TabsSpacing = 5;
            this.TabDetails.TabStyle = TabStyleEnum.Office2007;
            this.TabDetails.VisualStyle = C1.Win.C1Command.VisualStyle.Custom;
            this.TabDetails.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this.C1DockingTabPage2.Controls.Add(this.VSlist);
            this.C1DockingTabPage2.Controls.Add(this.TxtDiaChiGiaoHang);
            this.C1DockingTabPage2.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage2.Location = point;
            this.C1DockingTabPage2.Name = "C1DockingTabPage2";
            size = new Size(0x37c, 0xee);
            this.C1DockingTabPage2.Size = size;
            this.C1DockingTabPage2.TabIndex = 0;
            this.C1DockingTabPage2.Text = "F5. Chi tiết h\x00e0ng h\x00f3a";
            point = new Point(0x160, 0x95);
            this.TxtDiaChiGiaoHang.Location = point;
            this.TxtDiaChiGiaoHang.Name = "TxtDiaChiGiaoHang";
            size = new Size(100, 20);
            this.TxtDiaChiGiaoHang.Size = size;
            this.TxtDiaChiGiaoHang.TabIndex = 0xa5;
            this.TxtDiaChiGiaoHang.Visible = false;
            this.C1DockingTabPage3.Controls.Add(this.VSListDieuKhoan);
            this.C1DockingTabPage3.Image = ACCOUNTING.My.Resources.Resources.Selected;
            point = new Point(1, 0x19);
            this.C1DockingTabPage3.Location = point;
            this.C1DockingTabPage3.Name = "C1DockingTabPage3";
            size = new Size(0x37c, 0xee);
            this.C1DockingTabPage3.Size = size;
            this.C1DockingTabPage3.TabIndex = 1;
            this.C1DockingTabPage3.Text = "F6. Điều khoản b\x00e1o gi\x00e1";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(0x37e, 0x239);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.TabDetails);
            this.Controls.Add(this.TabControl1);
            this.Controls.Add(this.Panel4);
            this.Controls.Add(this.ToolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_BaoGia";
            this.ShowIcon = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Tag = "BH-0002";
            this.Text = "BANG BAO GIA";
            ((ISupportInitialize) this.TxtTienThueNT).EndInit();
            ((ISupportInitialize) this.TxtTongCongNT).EndInit();
            ((ISupportInitialize) this.TxtSoTienNT).EndInit();
            this.Panel4.ResumeLayout(false);
            this.Panel4.PerformLayout();
            ((ISupportInitialize) this.TxtSoLuong).EndInit();
            this.Panel5.ResumeLayout(false);
            this.Panel5.PerformLayout();
            this.VSlist.EndInit();
            this.VSListDieuKhoan.EndInit();
            this.ToolStrip1.ResumeLayout(false);
            this.ToolStrip1.PerformLayout();
            ((ISupportInitialize) this.TabControl1).EndInit();
            this.TabControl1.ResumeLayout(false);
            this.C1DockingTabPage1.ResumeLayout(false);
            this.C1DockingTabPage1.PerformLayout();
            ((ISupportInitialize) this.TxtTyGia).EndInit();
            ((ISupportInitialize) this.TabDetails).EndInit();
            this.TabDetails.ResumeLayout(false);
            this.C1DockingTabPage2.ResumeLayout(false);
            this.C1DockingTabPage2.PerformLayout();
            this.C1DockingTabPage3.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        public void LoadPhuTung(int nRow, string pKhoaThietBi)
        {
            clsDMHangHoa hoa = new clsDMHangHoa();
            clsGiaBan ban = new clsGiaBan();
            DataTable phuTung = hoa.GetPhuTung(pKhoaThietBi);
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            int num5 = phuTung.Rows.Count - 1;
            for (int i = 0; i <= num5; i++)
            {
                vSlist.AddItem("");
                vSlist[vSlist.Rows.Count - 1, 1] = "PT";
                vSlist[vSlist.Rows.Count - 1, 2] = modGeneral.Tranlated("Phụ t\x00f9ng", "");
                vSlist[vSlist.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["KhoaPhuTung"]);
                vSlist[vSlist.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["MaPhuTung"]);
                vSlist[vSlist.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(phuTung.Rows[i]["TenPhuTung"]);
                DataTable hangHoa = hoa.GetHangHoa(Conversions.ToString(vSlist[vSlist.Rows.Count - 1, 3]));
                vSlist[vSlist.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaQuocGia"]);
                vSlist[vSlist.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["XuatXu"]);
                vSlist[vSlist.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaHangSanXuat"]);
                vSlist[vSlist.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["HangSanXuat"]);
                vSlist[vSlist.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["ThoiGianBaoHanh"]);
                vSlist[vSlist.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaDonViTinh"]);
                vSlist[vSlist.Rows.Count - 1, 12] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["DonViTinh"]);
                vSlist[vSlist.Rows.Count - 1, 13] = 1;
                vSlist[vSlist.Rows.Count - 1, 14] = 1;
                vSlist[vSlist.Rows.Count - 1, 0x11] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["TyLeThue"]);
                vSlist[vSlist.Rows.Count - 1, 20] = pKhoaThietBi;
                double giaBan = ban.GetGiaBan(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(vSlist[vSlist.Rows.Count - 1, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), Conversions.ToString(this.CboLoaiGia.SelectedValue));
                int num4 = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[vSlist.Rows.Count - 1, 0x11]), 0, modGeneral.TypeOfValue.Nothing));
                if (modGeneral.H_GIABANBAOGOMTHUE)
                {
                    double num3 = Math.Round((double) (giaBan / ((double) (100 + num4)))) * num4;
                    vSlist[vSlist.Rows.Count - 1, 0x12] = num3;
                    giaBan -= num3;
                }
                else
                {
                    vSlist[vSlist.Rows.Count - 1, 0x12] = Math.Round((double) ((giaBan * num4) / 100.0));
                }
                vSlist[vSlist.Rows.Count - 1, 15] = giaBan;
                vSlist[vSlist.Rows.Count - 1, 0x10] = giaBan;
            }
            vSlist = null;
        }

        private void Me_HelpRequested(object sender, HelpEventArgs hlpevent)
        {
            HtmlHelp(this.Handle, "Dragon_Help.chm", 15, 1);
        }

        private void mnInTiengAnh_Click(object sender, EventArgs e)
        {
            ReportModule.PrintBaoGia(this.cFrmKhoa, "ANH", 1);
        }

        private void mnInTiengAnhKhongTotal_Click(object sender, EventArgs e)
        {
            ReportModule.PrintBaoGia(this.cFrmKhoa, "ANH", 1);
        }

        private void mnInTiengViet_Click(object sender, EventArgs e)
        {
            ReportModule.PrintBaoGia(this.cFrmKhoa, "VIET", 1);
        }

        private void mnInTiengVietKhongToal_Click(object sender, EventArgs e)
        {
            ReportModule.PrintBaoGia(this.cFrmKhoa, "VIET", 0);
        }

        public bool SaveDetailsTemp()
        {
            int num2 = this.VSlist.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                ClsBaoGiaChiTiet objBGCT = this.objBGCT;
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VSlist[i, 0] = modGeneral.CreatKey("BH_BaoGiaChiTiet", 15, "");
                }
                string str = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objBGCT.Khoa = Conversions.ToString(this.VSlist[i, 0]);
                objBGCT.KhoaBaoGia = this.cFrmKhoa;
                objBGCT.Loai = "";
                objBGCT.KhoaHangHoa = Conversions.ToString(this.VSlist[i, 3]);
                objBGCT.KhoaQuocGia = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 6]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objBGCT.KhoaHangSanXuat = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 8]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objBGCT.ThoiGianBaoHanh = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 10]), 0, modGeneral.TypeOfValue.Nothing));
                objBGCT.KhoaDonViTinh = Conversions.ToString(this.VSlist[i, 11]);
                objBGCT.QuyCach = Conversions.ToDouble(this.VSlist[i, 13]);
                objBGCT.SoLuong = Conversions.ToDouble(this.VSlist[i, 14]);
                objBGCT.DonGia = Conversions.ToDouble(this.VSlist[i, 15]);
                objBGCT.TienHang = Conversions.ToDouble(this.VSlist[i, 0x10]);
                objBGCT.TyLeThue = Conversions.ToInteger(this.VSlist[i, 0x11]);
                objBGCT.TienThue = Conversions.ToDouble(this.VSlist[i, 0x12]);
                objBGCT.DienGiai = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[i, 0x15]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                if (!objBGCT.Save())
                {
                    return false;
                }
                objBGCT = null;
            }
            return true;
        }

        public bool SaveDieuKhoan()
        {
            int num2 = this.VSListDieuKhoan.Rows.Count - 1;
            for (int i = 1; i <= num2; i++)
            {
                clsChiTietDieuKhoanChungTu objDKCT = this.objDKCT;
                if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
                {
                    this.VSListDieuKhoan[i, 0] = modGeneral.CreatKey("BH_BaoGiaDieuKhoanChiTiet", 15, "");
                }
                objDKCT.Khoa = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 0]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objDKCT.KhoaChungTu = this.cFrmKhoa;
                objDKCT.KhoaDieuKhoan = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 1]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objDKCT.NoiDungViet = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objDKCT.NoiDungAnh = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 4]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                objDKCT.HienThi = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSListDieuKhoan[i, 5]), 0, modGeneral.TypeOfValue.Nothing));
                objDKCT.STT = i;
                if (!objDKCT.SaveBaoGiaDieuKhoan())
                {
                    return false;
                }
                objDKCT = null;
            }
            return true;
        }

        public void SetLanguage()
        {
            this.CmdAdd.Text = modGeneral.Tranlated(this.CmdAdd.Text, "");
            this.CmdEdit.Text = modGeneral.Tranlated(this.CmdEdit.Text, "");
            this.CmdDel.Text = modGeneral.Tranlated(this.CmdDel.Text, "");
            this.CmdSave.Text = modGeneral.Tranlated(this.CmdSave.Text, "");
            this.CmdUnsave.Text = modGeneral.Tranlated(this.CmdUnsave.Text, "");
            this.CmdPrint.Text = modGeneral.Tranlated(this.CmdPrint.Text, "");
            this.CmdHelp.Text = modGeneral.Tranlated(this.CmdHelp.Text, "");
            this.CmdExit.Text = modGeneral.Tranlated(this.CmdExit.Text, "");
            this.TabControl1.TabPages[0].Text = modGeneral.Tranlated(this.TabControl1.TabPages[0].Text, "");
        }

        public void ShowData(string pKhoa)
        {
            ClsBaoGia objBG = this.objBG;
            objBG.Load(pKhoa);
            this.cFrmKhoa = objBG.Khoa;
            this.TxtSoChungTu.Text = objBG.SoChungTu.Trim();
            this.AdvNhaCungCap.Value = objBG.KhoaKhachHang.Trim();
            this.CboLienHe.Text = objBG.NguoiLienHe.Trim();
            this.TxtDienGiai.Text = objBG.DienGiai.Trim();
            this.CboLoaiGia.SelectedValue = objBG.KhoaLoaiGia;
            this.TxtDiaChiGiaoHang.Text = objBG.DiaChiGiaoHang.Trim();
            this.CboLoaiTien.SelectedValue = objBG.LoaiTien.Trim();
            this.AdvNhanVien.Value = objBG.KhoaNhanVien;
            this.TxtTyGia.Value = objBG.TyGia;
            this.TxtNgayChungTu.Text = LVYModule.Char2Date(objBG.NgayChungTu);
            this.TxtHanGiaoHang.Text = objBG.HieuLucDenNgay;
            this.TxtDienThoai.Text = objBG.DienThoai.Trim();
            this.TxtEmail.Text = objBG.Email.Trim();
            this.TxtFax.Text = objBG.Fax.Trim();
            this.CboTinhTrang.SelectedIndex = objBG.TinhTrang;
            this.TxtSoTienNT.Value = objBG.TienHangNT;
            this.TxtTienThueNT.Value = objBG.TienThueNT;
            this.TxtTongCongNT.Value = objBG.TienHangNT + objBG.TienThueNT;
            this.TxtChucVu.Text = objBG.ChucVuNhanVien;
            this.TxtDienThoaiNhanVien.Text = objBG.DienThoaiNhanVien;
            this.TxtFaxNhanVien.Text = objBG.FaxNhanVien;
            this.TxtEmailNhanVien.Text = objBG.EmailNhanVien;
            this.txtRe.Text = objBG.Reply;
            this.TxtRefNo.Text = objBG.SoYeuCauBaoGia;
            objBG = null;
            DataTable details = this.objBG.GetDetails(this.cFrmKhoa);
            if (details != null)
            {
                int num2 = details.Rows.Count - 1;
                for (int i = 0; i <= num2; i++)
                {
                    C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                    vSlist.AddItem("");
                    vSlist[vSlist.Rows.Count - 1, 0] = RuntimeHelpers.GetObjectValue(details.Rows[i]["Khoa"]);
                    vSlist[vSlist.Rows.Count - 1, 1] = RuntimeHelpers.GetObjectValue(details.Rows[i]["Loai"]);
                    vSlist[vSlist.Rows.Count - 1, 2] = RuntimeHelpers.GetObjectValue(details.Rows[i]["TenLoai"]);
                    vSlist[vSlist.Rows.Count - 1, 3] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaHangHoa"]);
                    vSlist[vSlist.Rows.Count - 1, 4] = RuntimeHelpers.GetObjectValue(details.Rows[i]["MaHang"]);
                    vSlist[vSlist.Rows.Count - 1, 5] = RuntimeHelpers.GetObjectValue(details.Rows[i]["TenHang"]);
                    vSlist[vSlist.Rows.Count - 1, 6] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaQG"]);
                    vSlist[vSlist.Rows.Count - 1, 7] = RuntimeHelpers.GetObjectValue(details.Rows[i]["XuatXu"]);
                    vSlist[vSlist.Rows.Count - 1, 8] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaHangSanXuat"]);
                    vSlist[vSlist.Rows.Count - 1, 9] = RuntimeHelpers.GetObjectValue(details.Rows[i]["HangSanXuat"]);
                    vSlist[vSlist.Rows.Count - 1, 10] = RuntimeHelpers.GetObjectValue(details.Rows[i]["ThoiGianBaoHanh"]);
                    vSlist[vSlist.Rows.Count - 1, 11] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaDVT"]);
                    vSlist[vSlist.Rows.Count - 1, 12] = RuntimeHelpers.GetObjectValue(details.Rows[i]["DVT"]);
                    vSlist[vSlist.Rows.Count - 1, 13] = RuntimeHelpers.GetObjectValue(details.Rows[i]["QuyCach"]);
                    vSlist[vSlist.Rows.Count - 1, 14] = RuntimeHelpers.GetObjectValue(details.Rows[i]["SoLuong"]);
                    vSlist[vSlist.Rows.Count - 1, 15] = RuntimeHelpers.GetObjectValue(details.Rows[i]["DonGia"]);
                    vSlist[vSlist.Rows.Count - 1, 0x10] = RuntimeHelpers.GetObjectValue(details.Rows[i]["TienHang"]);
                    vSlist[vSlist.Rows.Count - 1, 0x11] = RuntimeHelpers.GetObjectValue(details.Rows[i]["ThueSuat"]);
                    vSlist[vSlist.Rows.Count - 1, 0x12] = RuntimeHelpers.GetObjectValue(details.Rows[i]["TienThue"]);
                    vSlist[vSlist.Rows.Count - 1, 0x13] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaThietBi"]);
                    vSlist[vSlist.Rows.Count - 1, 20] = RuntimeHelpers.GetObjectValue(details.Rows[i]["KhoaCha"]);
                    vSlist[vSlist.Rows.Count - 1, 0x15] = RuntimeHelpers.GetObjectValue(details.Rows[i]["DienGiaiChiTiet"]);
                    vSlist = null;
                }
                this.GetDieuKhoan(pKhoa);
            }
        }

        public void TinhThue(int nRow)
        {
            double num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x10]), 0, modGeneral.TypeOfValue.Nothing));
            int num2 = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 0x11]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 0x12] = Math.Round((double) ((num * num2) / 100.0), this.objLT.SoLe);
        }

        public void TinhTienHang(int nRow)
        {
            double num2 = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 14]), 0, modGeneral.TypeOfValue.Nothing));
            double num = Conversions.ToDouble(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[nRow, 15]), 0, modGeneral.TypeOfValue.Nothing));
            this.VSlist[nRow, 0x10] = num2 * num;
        }

        public void TinhTong()
        {
            this.TxtSoTienNT.Value = LVYModule.SumColGrid(this.VSlist, 0x10);
            this.TxtTienThueNT.Value = LVYModule.SumColGrid(this.VSlist, 0x12);
            this.TxtTongCongNT.Value = Microsoft.VisualBasic.CompilerServices.Operators.AddObject(this.TxtSoTienNT.Value, this.TxtTienThueNT.Value);
        }

        private void ToolStripSplitButton1_Click(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                MyProject.Forms.Frm_TuyChonInBaoGia.cFrmKhoaBaoGia = this.cFrmKhoa;
                MyProject.Forms.Frm_TuyChonInBaoGia.ShowDialog();
            }
        }

        private void TxtHanGiaoHang_ValueChanged(object sender, EventArgs e)
        {
        }

        private void txtTyGia_TextChanged(object sender, EventArgs e)
        {
        }

        public object UpdateData()
        {
            object obj2;
            ClsBaoGia objBG = this.objBG;
            objBG.Khoa = this.cFrmKhoa;
            objBG.SoChungTu = this.TxtSoChungTu.Text;
            objBG.KhoaKhachHang = this.AdvNhaCungCap.Value;
            objBG.NguoiLienHe = this.CboLienHe.Text;
            objBG.DienGiai = this.TxtDienGiai.Text;
            objBG.KhoaLoaiGia = Conversions.ToString(this.CboLoaiGia.SelectedValue);
            objBG.DiaChiGiaoHang = this.TxtDiaChiGiaoHang.Text;
            objBG.LoaiTien = Conversions.ToString(this.CboLoaiTien.SelectedValue);
            objBG.KhoaNhanVien = this.AdvNhanVien.Value;
            objBG.TyGia = Conversions.ToDouble(this.TxtTyGia.Value);
            objBG.NgayChungTu = LVYModule.Date2Char(this.TxtNgayChungTu.Text);
            objBG.HieuLucDenNgay = this.TxtHanGiaoHang.Text;
            objBG.DienThoai = this.TxtDienThoai.Text;
            objBG.Email = this.TxtEmail.Text;
            objBG.Fax = this.TxtFax.Text;
            objBG.TinhTrang = this.CboTinhTrang.SelectedIndex;
            objBG.TienHangNT = Conversions.ToDouble(this.TxtSoTienNT.Value);
            objBG.TienHang = objBG.TienHangNT;
            objBG.TienThueNT = Conversions.ToDouble(this.TxtTienThueNT.Value);
            objBG.TienThue = objBG.TienThueNT;
            objBG.ChucVuNhanVien = this.TxtChucVu.Text.Trim();
            objBG.DienThoaiNhanVien = this.TxtDienThoaiNhanVien.Text.Trim();
            objBG.FaxNhanVien = this.TxtFaxNhanVien.Text.Trim();
            objBG.EmailNhanVien = this.TxtEmailNhanVien.Text.Trim();
            if (objBG.KhoaNhanVienTao.Trim() == "")
            {
                objBG.KhoaNhanVienTao = modGeneral.H_USERID;
            }
            if (objBG.NgayTao.Trim() == "")
            {
                objBG.NgayTao = LVYModule.Date2Char(Strings.Format(DateAndTime.Today, "dd/MM/yyyy"));
            }
            objBG.KhoaNhanVienSua = modGeneral.H_USERID;
            objBG.NgaySua = LVYModule.Date2Char(Strings.Format(DateAndTime.Today, "dd/MM/yyyy"));
            objBG.Reply = this.txtRe.Text;
            objBG.SoYeuCauBaoGia = this.TxtRefNo.Text;
            return objBG.Save();
            objBG = null;
            return obj2;
        }

        private void VSlist_AfterEdit(object sender, RowColEventArgs e)
        {
            switch (e.Col)
            {
                case 14:
                case 15:
                    this.TinhTienHang(e.Row);
                    this.TinhThue(e.Row);
                    this.TinhTong();
                    break;

                case 0x11:
                    this.TinhThue(e.Row);
                    this.TinhTong();
                    break;
            }
        }

        private void VSlist_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnabledControl)
            {
                e.Cancel = true;
            }
            else if ((e.Col == 5) | (e.Col == 13))
            {
                e.Cancel = true;
            }
        }

        private void VSlist_CellButtonClick(object sender, RowColEventArgs e)
        {
            string[] strArray;
            string expression = "";
            switch (e.Col)
            {
                case 2:
                {
                    DataTable pDataSource = modGeneral.H_DUNGCHUNG.ShowList("0000000004");
                    strArray = LVYModule.ShowMultiDropDownBySource(this.VSlist, e.Row, e.Col, pDataSource, 10, 0, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 1]), "", modGeneral.TypeOfValue.Nothing).ToString(), "");
                    if (Information.UBound(strArray, 1) > 0)
                    {
                        this.VSlist[e.Row, 1] = strArray[0];
                        this.VSlist[e.Row, 2] = strArray[1];
                    }
                    this.VSlist.Select(e.Row, 4);
                    break;
                }
                case 4:
                {
                    expression = SearchModule.SearchHangHoa("", "", "");
                    if (expression.Trim() != "")
                    {
                        strArray = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                        this.VSlist[e.Row, 3] = strArray[0];
                        this.VSlist[e.Row, 4] = strArray[1];
                        this.VSlist[e.Row, 5] = strArray[2];
                        clsDMHangHoa hoa = new clsDMHangHoa();
                        hoa.Load(strArray[0]);
                        DataTable hangHoa = hoa.GetHangHoa(strArray[0].ToString());
                        this.VSlist[e.Row, 6] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaQuocGia"]);
                        this.VSlist[e.Row, 7] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["XuatXu"]);
                        this.VSlist[e.Row, 8] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaHangSanXuat"]);
                        this.VSlist[e.Row, 9] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["HangSanXuat"]);
                        this.VSlist[e.Row, 10] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["ThoiGianBaoHanh"]);
                        this.VSlist[e.Row, 11] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["KhoaDonViTinh"]);
                        this.VSlist[e.Row, 12] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["DonViTinh"]);
                        this.VSlist[e.Row, 13] = 1;
                        this.VSlist[e.Row, 14] = 1;
                        this.VSlist[e.Row, 0x11] = RuntimeHelpers.GetObjectValue(hangHoa.Rows[0]["TyLeThue"]);
                        this.VSlist[e.Row, 0x15] = hoa.DienGiai;
                    }
                    double giaBan = new clsGiaBan().GetGiaBan(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), Conversions.ToString(this.CboLoaiGia.SelectedValue));
                    int num3 = Conversions.ToInteger(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 0x11]), 0, modGeneral.TypeOfValue.Nothing));
                    if (modGeneral.H_GIABANBAOGOMTHUE)
                    {
                        double num2 = Math.Round((double) ((giaBan / ((double) (100 + num3))) * num3), this.objLT.SoLe);
                        this.VSlist[e.Row, 0x12] = num2;
                        giaBan -= num2;
                    }
                    else
                    {
                        this.VSlist[e.Row, 0x12] = Math.Round((double) ((giaBan * num3) / 100.0), this.objLT.SoLe);
                    }
                    this.VSlist[e.Row, 15] = giaBan;
                    this.VSlist[e.Row, 0x10] = giaBan;
                    this.VSlist.Select(e.Row, 14);
                    if (e.Row > 1)
                    {
                        this.VSlist[e.Row, 6] = RuntimeHelpers.GetObjectValue(this.VSlist[e.Row - 1, 6]);
                        this.VSlist[e.Row, 7] = RuntimeHelpers.GetObjectValue(this.VSlist[e.Row - 1, 7]);
                        this.VSlist.Select(e.Row, 12);
                    }
                    this.LoadPhuTung(e.Row, Conversions.ToString(this.VSlist[e.Row, 3]));
                    this.TinhTong();
                    break;
                }
                case 7:
                    expression = SearchModule.SearchQuocGia("");
                    if (expression.Trim() != "")
                    {
                        strArray = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                        this.VSlist[e.Row, 6] = strArray[0];
                        this.VSlist[e.Row, 7] = strArray[2];
                    }
                    this.VSlist.Select(e.Row, 12);
                    break;

                case 9:
                    expression = SearchModule.SearchHangSanXuat("");
                    if (expression.Trim() != "")
                    {
                        strArray = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                        this.VSlist[e.Row, 8] = strArray[0];
                        this.VSlist[e.Row, 9] = strArray[2];
                    }
                    this.VSlist.Select(e.Row, 12);
                    break;

                case 12:
                    strArray = SearchModule.SearchDVT(LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 3]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim(), this.VSlist, e.Row, e.Col, LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.VSlist[e.Row, 13]), "", modGeneral.TypeOfValue.Nothing).ToString().Trim());
                    if (strArray != null)
                    {
                        if (Information.UBound(strArray, 1) >= 2)
                        {
                            this.VSlist[e.Row, 11] = strArray[0];
                            this.VSlist[e.Row, 12] = strArray[1];
                            this.VSlist[e.Row, 13] = strArray[2];
                        }
                        this.VSlist.Select(e.Row, 15);
                        break;
                    }
                    break;

                case 0x15:
                    MyProject.Forms.Frm_CapNhatDienGiai.Row = e.Row;
                    MyProject.Forms.Frm_CapNhatDienGiai.Col = e.Col;
                    MyProject.Forms.Frm_CapNhatDienGiai.TxtDienGiai.Text = Conversions.ToString(this.VSlist[e.Row, 0x15]);
                    MyProject.Forms.Frm_CapNhatDienGiai.ShowDialog();
                    break;
            }
        }

        private void VSListDieuKhoan_BeforeEdit(object sender, RowColEventArgs e)
        {
            if (!this.mEnabledControl)
            {
                e.Cancel = true;
            }
        }

        private void VSListDieuKhoan_CellButtonClick(object sender, RowColEventArgs e)
        {
            if (e.Col == 2)
            {
                string expression = SearchModule.SearchDieuKhoan("");
                if (expression.Trim() != "")
                {
                    object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                    this.VSListDieuKhoan[e.Row, 1] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null));
                    this.VSListDieuKhoan[e.Row, 2] = RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(instance, new object[] { 2 }, null));
                }
                this.VSListDieuKhoan.Select(e.Row, 3);
            }
        }

        internal virtual ADVObjects AdvNhaCungCap
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhaCungCap;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                ADVObjects.ValueChangedEventHandler handler = new ADVObjects.ValueChangedEventHandler(this.AdvNhaCungCap_ValueChanged);
                if (this._AdvNhaCungCap != null)
                {
                    this._AdvNhaCungCap.ValueChanged -= handler;
                }
                this._AdvNhaCungCap = value;
                if (this._AdvNhaCungCap != null)
                {
                    this._AdvNhaCungCap.ValueChanged += handler;
                }
            }
        }

        internal virtual ADVObjects AdvNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                ADVObjects.ValueChangedEventHandler handler = new ADVObjects.ValueChangedEventHandler(this.AdvNhanVien_ValueChanged);
                if (this._AdvNhanVien != null)
                {
                    this._AdvNhanVien.ValueChanged -= handler;
                }
                this._AdvNhanVien = value;
                if (this._AdvNhanVien != null)
                {
                    this._AdvNhanVien.ValueChanged += handler;
                }
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage3 = value;
            }
        }

        internal virtual ComboBox CboLienHe
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLienHe;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLienHe = value;
            }
        }

        internal virtual ComboBox CboLoaiGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiGia = value;
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboLoaiTien_SelectedIndexChanged);
                if (this._CboLoaiTien != null)
                {
                    this._CboLoaiTien.SelectedIndexChanged -= handler;
                }
                this._CboLoaiTien = value;
                if (this._CboLoaiTien != null)
                {
                    this._CboLoaiTien.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual ComboBox CboTinhTrang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhTrang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboTinhTrang = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdAddRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAddRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAddRow_Click);
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click -= handler;
                }
                this._CmdAddRow = value;
                if (this._CmdAddRow != null)
                {
                    this._CmdAddRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem CmdChapThuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChapThuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdChapThuan_Click);
                if (this._CmdChapThuan != null)
                {
                    this._CmdChapThuan.Click -= handler;
                }
                this._CmdChapThuan = value;
                if (this._CmdChapThuan != null)
                {
                    this._CmdChapThuan.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual Button CmdDelRow
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDelRow;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDelRow_Click);
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click -= handler;
                }
                this._CmdDelRow = value;
                if (this._CmdDelRow != null)
                {
                    this._CmdDelRow.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDieuKhoanMacDinh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDieuKhoanMacDinh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDieuKhoanMacDinh_Click);
                if (this._CmdDieuKhoanMacDinh != null)
                {
                    this._CmdDieuKhoanMacDinh.Click -= handler;
                }
                this._CmdDieuKhoanMacDinh = value;
                if (this._CmdDieuKhoanMacDinh != null)
                {
                    this._CmdDieuKhoanMacDinh.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdFind_Click);
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click -= handler;
                }
                this._CmdFind = value;
                if (this._CmdFind != null)
                {
                    this._CmdFind.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHelp_Click);
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click -= handler;
                }
                this._CmdHelp = value;
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem CmdInTiengAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdInTiengAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdInTiengAnh = value;
            }
        }

        internal virtual ToolStripMenuItem CmdInTiengViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdInTiengViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdInTiengViet = value;
            }
        }

        internal virtual ToolStripMenuItem CmdKhongChapThuan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdKhongChapThuan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdKhongChapThuan_Click);
                if (this._CmdKhongChapThuan != null)
                {
                    this._CmdKhongChapThuan.Click -= handler;
                }
                this._CmdKhongChapThuan = value;
                if (this._CmdKhongChapThuan != null)
                {
                    this._CmdKhongChapThuan.Click += handler;
                }
            }
        }

        internal virtual ToolStripSplitButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_ButtonClick);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.ButtonClick -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.ButtonClick += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        internal virtual ToolStripDropDownButton CmdXacNhan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdXacNhan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdXacNhan = value;
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnabledControl;
            }
            set
            {
                this.mEnabledControl = value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.CmdFind.Enabled = !value;
                this.CmdExit.Enabled = !value;
                this.CmdAddRow.Enabled = value;
                this.CmdDelRow.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.TxtSoChungTu.ReadOnly = !value;
                this.TxtNgayChungTu.Enabled = value;
                this.CboLoaiTien.Enabled = value;
                this.TxtTyGia.ReadOnly = !value;
                this.TxtDienGiai.ReadOnly = !value;
                this.TxtSoChungTu.ReadOnly = !value;
                this.AdvNhaCungCap.ReadOnly = !value;
                this.CboLienHe.Enabled = value;
                this.TxtDiaChiGiaoHang.ReadOnly = !value;
                this.TxtDienGiai.ReadOnly = !value;
                this.TxtDienThoai.ReadOnly = !value;
                this.TxtEmail.ReadOnly = !value;
                this.TxtFax.ReadOnly = !value;
                this.TxtHanGiaoHang.Enabled = value;
                this.AdvNhanVien.ReadOnly = !value;
                this.CboTinhTrang.Enabled = value;
                this.CboLoaiGia.Enabled = value;
                this.TxtChucVu.ReadOnly = !value;
                this.TxtDienThoaiNhanVien.ReadOnly = !value;
                this.TxtFaxNhanVien.ReadOnly = !value;
                this.TxtEmailNhanVien.ReadOnly = !value;
                this.txtRe.ReadOnly = !value;
                this.TxtRefNo.ReadOnly = !value;
            }
        }

        internal virtual ImageList ImageList1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ImageList1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ImageList1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label12
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label12;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label12 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label15
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label15;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label15 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label17
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label17;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label17 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label20
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label20;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label20 = value;
            }
        }

        internal virtual Label Label21
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label21;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label21 = value;
            }
        }

        internal virtual Label Label22
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label22;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label22 = value;
            }
        }

        internal virtual Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Label Label24
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label24;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label24 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label57
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label57;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label57 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual ToolStripMenuItem mnInTiengAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnInTiengAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnInTiengAnh_Click);
                if (this._mnInTiengAnh != null)
                {
                    this._mnInTiengAnh.Click -= handler;
                }
                this._mnInTiengAnh = value;
                if (this._mnInTiengAnh != null)
                {
                    this._mnInTiengAnh.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnInTiengAnhKhongTotal
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnInTiengAnhKhongTotal;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnInTiengAnhKhongTotal_Click);
                if (this._mnInTiengAnhKhongTotal != null)
                {
                    this._mnInTiengAnhKhongTotal.Click -= handler;
                }
                this._mnInTiengAnhKhongTotal = value;
                if (this._mnInTiengAnhKhongTotal != null)
                {
                    this._mnInTiengAnhKhongTotal.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnInTiengViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnInTiengViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnInTiengViet_Click);
                if (this._mnInTiengViet != null)
                {
                    this._mnInTiengViet.Click -= handler;
                }
                this._mnInTiengViet = value;
                if (this._mnInTiengViet != null)
                {
                    this._mnInTiengViet.Click += handler;
                }
            }
        }

        internal virtual ToolStripMenuItem mnInTiengVietKhongToal
        {
            [DebuggerNonUserCode]
            get
            {
                return this._mnInTiengVietKhongToal;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.mnInTiengVietKhongToal_Click);
                if (this._mnInTiengVietKhongToal != null)
                {
                    this._mnInTiengVietKhongToal.Click -= handler;
                }
                this._mnInTiengVietKhongToal = value;
                if (this._mnInTiengVietKhongToal != null)
                {
                    this._mnInTiengVietKhongToal.Click += handler;
                }
            }
        }

        internal virtual Panel Panel4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel4 = value;
            }
        }

        internal virtual Panel Panel5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel5 = value;
            }
        }

        internal virtual C1DockingTab TabControl1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabControl1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabControl1 = value;
            }
        }

        internal virtual C1DockingTab TabDetails
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TabDetails;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TabDetails = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator4 = value;
            }
        }

        internal virtual ToolStripButton ToolStripSplitButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSplitButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.ToolStripSplitButton1_Click);
                if (this._ToolStripSplitButton1 != null)
                {
                    this._ToolStripSplitButton1.Click -= handler;
                }
                this._ToolStripSplitButton1 = value;
                if (this._ToolStripSplitButton1 != null)
                {
                    this._ToolStripSplitButton1.Click += handler;
                }
            }
        }

        internal virtual TextBox TxtChucVu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtChucVu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtChucVu = value;
            }
        }

        internal virtual TextBox TxtDiaChiGiaoHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDiaChiGiaoHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDiaChiGiaoHang = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiai = value;
            }
        }

        internal virtual TextBox TxtDienThoai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienThoai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienThoai = value;
            }
        }

        internal virtual TextBox TxtDienThoaiNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienThoaiNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienThoaiNhanVien = value;
            }
        }

        internal virtual TextBox TxtEmail
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtEmail;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtEmail = value;
            }
        }

        internal virtual TextBox TxtEmailNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtEmailNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtEmailNhanVien = value;
            }
        }

        internal virtual TextBox TxtFax
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtFax;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtFax = value;
            }
        }

        internal virtual TextBox TxtFaxNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtFaxNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtFaxNhanVien = value;
            }
        }

        internal virtual DateTimePicker TxtHanGiaoHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHanGiaoHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtHanGiaoHang_ValueChanged);
                if (this._TxtHanGiaoHang != null)
                {
                    this._TxtHanGiaoHang.ValueChanged -= handler;
                }
                this._TxtHanGiaoHang = value;
                if (this._TxtHanGiaoHang != null)
                {
                    this._TxtHanGiaoHang.ValueChanged += handler;
                }
            }
        }

        internal virtual DateTimePicker TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual TextBox txtRe
        {
            [DebuggerNonUserCode]
            get
            {
                return this._txtRe;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._txtRe = value;
            }
        }

        internal virtual TextBox TxtRefNo
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtRefNo;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtRefNo = value;
            }
        }

        internal virtual TextBox TxtSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTu = value;
            }
        }

        internal virtual C1NumericEdit TxtSoLuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoLuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoLuong = value;
            }
        }

        internal virtual C1NumericEdit TxtSoTienNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoTienNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoTienNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTienThueNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTienThueNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTienThueNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTongCongNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongCongNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongCongNT = value;
            }
        }

        internal virtual C1NumericEdit TxtTyGia
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTyGia;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTyGia = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSlist_CellButtonClick);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSlist_BeforeEdit);
                RowColEventHandler handler3 = new RowColEventHandler(this.VSlist_AfterEdit);
                if (this._VSlist != null)
                {
                    this._VSlist.CellButtonClick -= handler;
                    this._VSlist.BeforeEdit -= handler2;
                    this._VSlist.AfterEdit -= handler3;
                }
                this._VSlist = value;
                if (this._VSlist != null)
                {
                    this._VSlist.CellButtonClick += handler;
                    this._VSlist.BeforeEdit += handler2;
                    this._VSlist.AfterEdit += handler3;
                }
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSListDieuKhoan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSListDieuKhoan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                RowColEventHandler handler = new RowColEventHandler(this.VSListDieuKhoan_CellButtonClick);
                RowColEventHandler handler2 = new RowColEventHandler(this.VSListDieuKhoan_BeforeEdit);
                if (this._VSListDieuKhoan != null)
                {
                    this._VSListDieuKhoan.CellButtonClick -= handler;
                    this._VSListDieuKhoan.BeforeEdit -= handler2;
                }
                this._VSListDieuKhoan = value;
                if (this._VSListDieuKhoan != null)
                {
                    this._VSListDieuKhoan.CellButtonClick += handler;
                    this._VSListDieuKhoan.BeforeEdit += handler2;
                }
            }
        }
    }
}

